package com.baoai.dto;

import com.baoai.common.ArrayQuery;
import com.baoai.common.IdName;
import org.springframework.stereotype.Repository;

/**
 * 广告
 * Created by xiaren on 2017/4/10.
 */
@Repository("advert")
public class AdvertDto extends BaseDto {

    private String className = "advert";
    private String id;
    @IdName
    private String advertId;    // 广告id
    private String title;   // 标题
    private String adType;  // 类型 (homePic（首页）  coursePic（课程首页）  articlePic（文章）  expertPic  （专家）)
    private String coverType;   // (1图  3图)
    private String tutorName;   //导师名字
    private String coursePath;  //课程链接
    private Integer learnNumber; //学习的人数
    private String styleType;   //(1大图 2小图)
    private String label;   // 标签eg、课程
    private String sex;   // 性别 0所有，1男，2女
    private String srcJson; // 广告图片：["http://pic6.huitu.com/res/20130116/84481_20130116142820494200_1.jpg"]
    private Long createDate;    // 当前时间的毫秒数
    private Long updateDate;    //修改时间
    private String state;  // 状态1有效0无效

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    @Override
    public String toString() {
        return "AdvertDto{" +
                "className='" + className + '\'' +
                ", id='" + id + '\'' +
                ", advertId='" + advertId + '\'' +
                ", title='" + title + '\'' +
                ", adType='" + adType + '\'' +
                ", coverType='" + coverType + '\'' +
                ", tutorName='" + tutorName + '\'' +
                ", coursePath='" + coursePath + '\'' +
                ", learnNumber=" + learnNumber +
                ", styleType='" + styleType + '\'' +
                ", label='" + label + '\'' +
                ", sex='" + sex + '\'' +
                ", srcJson='" + srcJson + '\'' +
                ", createDate=" + createDate +
                ", updateDate=" + updateDate +
                '}';
    }

    public String getClassName() {
        return className;
    }

    public void setClassName(String className) {
        this.className = className;
    }

    @Override
    public String getId() {
        return id;
    }

    @Override
    public void setId(String id) {
        this.id = id;
    }

    public String getAdvertId() {
        return advertId;
    }

    public void setAdvertId(String advertId) {
        this.advertId = advertId;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getAdType() {
        return adType;
    }

    public void setAdType(String adType) {
        this.adType = adType;
    }

    public String getCoverType() {
        return coverType;
    }

    public void setCoverType(String coverType) {
        this.coverType = coverType;
    }

    public String getTutorName() {
        return tutorName;
    }

    public void setTutorName(String tutorName) {
        this.tutorName = tutorName;
    }

    public String getCoursePath() {
        return coursePath;
    }

    public void setCoursePath(String coursePath) {
        this.coursePath = coursePath;
    }

    public Integer getLearnNumber() {
        return learnNumber;
    }

    public void setLearnNumber(Integer learnNumber) {
        this.learnNumber = learnNumber;
    }

    public String getStyleType() {
        return styleType;
    }

    public void setStyleType(String styleType) {
        this.styleType = styleType;
    }

    public String getLabel() {
        return label;
    }

    public void setLabel(String label) {
        this.label = label;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getSrcJson() {
        return srcJson;
    }

    public void setSrcJson(String srcJson) {
        this.srcJson = srcJson;
    }

    @Override
    public Long getCreateDate() {
        return createDate;
    }

    @Override
    public void setCreateDate(Long createDate) {
        this.createDate = createDate;
    }

    @Override
    public Long getUpdateDate() {
        return updateDate;
    }

    @Override
    public void setUpdateDate(Long updateDate) {
        this.updateDate = updateDate;
    }
}
